package com.wangxinyuchuan.demo.template;

import com.wangxinyuchuan.demo.model.DiscountVolume;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 策略模式
 */
@Data
@AllArgsConstructor
public class DisCountVolumeManager {

    private DiscountVolumeStrategy discountVolumeStrategy;

    public DiscountVolume queryByResourceId(String resourceId) {
        return discountVolumeStrategy.queryByResourceId(resourceId);
    }
}
